package liurong.driver;

import java.io.Serializable;

/**
 * 接口协议
 */
public class ResultInfo<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 返回码
	 */
	private String code;

	/**
	 * 返回消息
	 */
	private String message;

	/**
	 * 返回数据
	 */
	private T data;

	public ResultInfo() {

	}

	public ResultInfo(String code, String message, T data) {
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
